<template>
	<view class="home">
		<view class="fenlei" @click="dailyRainfall">
			<view class="flxximg">
				<image class="img" src="/static/meiri.png" mode=""></image>
			</view>
			<view class="tyext">
				每日查询
			</view>
		</view>
		<view class="fenlei" @click="comparativeStatistics">
			<view class="flxximg">
				<image class="img" src="/static/duibis.png" mode=""></image>
			</view>
			<view class="tyext">
				逐日对比
			</view>
		</view>
		<view class="fenlei" @click="annualRainfall">
			<view class="flxximg">
				<image class="img" src="/static/nianj.png" mode=""></image>
			</view>
			<view class="tyext">
				年度汇总
			</view>
		</view>
		<view class="fenlei">
			<view class="flxximg">
				<image class="img" src="/static/daohsng.png" mode=""></image>
			</view>
			<view class="tyext">
				雨量分布
			</view>
		</view>

		<view class="fenlei" @click="fileExport">
			<view class="flxximg">
				<image class="img" src="/static/lianxi.png" mode=""></image>
			</view>
			<view class="tyext">
				数据导出
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad(option) {
			console.log('历史记录');
		},
		methods: {
			// 每日
			dailyRainfall() {
				uni.navigateTo({
					url: '/pages/index/managementOffice?name=' + '每日降雨量'
					// url: '/pages/index/districtListHYETAL?stype=' + '每日'
				});
			},
			// 年度
			annualRainfall() {
				uni.navigateTo({
					url: '/pages/index/managementOffice?name=' + '年度雨量'
					// url: '/pages/index/districtListHYETAL?stype=' + '年度'
				});
			},
			// 人工自己对比统计
			comparativeStatistics() {
				uni.navigateTo({
					url: '/pages/index/managementOffice?name=' + '统计对比'
				});
			},
			// 文件下载
			fileExport() {
				console.log('导出');
				// uni.navigateTo({
				// 	url: '/pages/feature/fileExport'
				// });
			}
		}
	}
</script>
<style scoped lang="scss">
	.fenlei {
		font-size: 50rpx;
		color: #000;
		margin: 30rpx;
		padding: 30rpx;
		border-radius: 30rpx;
		display: flex;
		align-items: center;
		justify-content: space-around;
		background-color: #fff;

		.flxximg {
			flex: 1;

			.img {
				width: 100rpx;
				height: 100rpx;
			}
		}


		.tyext {
			flex: 2;
		}
	}
</style>
<style>
	page {
		background-color: #f2f1f6;
	}
</style>